package com.yuexun.beilunpatient.ui.consult.api;

import com.yuexun.beilunpatient.ui.bean.BaseListEntity;
import com.yuexun.beilunpatient.ui.consult.bean.NewsDetailBean;
import com.yuexun.beilunpatient.ui.consult.bean.NewsInfoBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by chenss on 2018/7/27 0027.
 */

public interface ArticleApi {
    /**
     * 查询公司的新闻列表
     * @param praise
     * @return
     */
    @FormUrlEncoded
    @POST("inquireNewsListForIndex.json?")
    Observable<BaseListEntity<NewsInfoBean>> inquireArticlePageList(@FieldMap Map<String, String> praise);

    /**
     * 首页查询新闻详情
     * @param praise
     * @return
     */
    @FormUrlEncoded
    @POST("inquireNewsDetailForIndex.json?")
    Observable<BaseListEntity<NewsDetailBean>> inquireNewsDetailForIndex(@FieldMap Map<String, String> praise);
}
